package com.kingwang.training.designpattern.visitor.bo;

import lombok.Data;

import java.util.Random;

/**
 * 员工基类
 *
 * @author King
 */
@Data
public abstract class Staff {
    private String name;

    private int kpi;

    public Staff(String name) {
        this.name = name;
        this.kpi = new Random().nextInt(10);
    }

    public abstract void accept(Visitor visitor);
}
